]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ShellContactSystem: fix GSList leak
authorPavel Vasin <rat4vier@gmail.com>
Wed, 13 Jun 2012 16:48:06 +0000 (20:48 +0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 15 Jun 2012 05:05:08 +0000 (01:05 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=678079

src/shell-contact-system.c

index 88d329ec37c81e2fd6ed4033042b93ad0b027cac..4f5af7065ae686921c5b6b46d02aa85da22668da 100644 (file)
@@ -297,7 +297,7 @@ sort_and_prepare_results (GSList *results)
       sorted_results = g_slist_prepend (sorted_results, id);
     }
 
-  g_slist_foreach (results, (GFunc) free_result, NULL);
+  g_slist_free_full (results, (GDestroyNotify) free_result);
 
   return sorted_results;
 }